/* Layout */
import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV)

const noticeRoutes = [
  {
    path: '/notice',
    component: Layout,
    redirect: 'noredirect',
    name: 'notice',
    meta: {
      title: '消息管理',
      icon: 'qq',
      roles: []
    },
    children: [
      {
        path: 'notice-message',
        name: 'notice-message',
        component: _import('notice/announcement/index'),
        meta: {
          title: '公告站内信',
          roles: [
            'create',
            'list',
            'edit',
            'del',
            'switch',
            "inbox-list",
            "send-list",
            'mail-list',
            'tickling-list',
            'inbox-edit',
            "inbox-revoke",
            'inbox-check',
            'inbox-reply',
            "inbox-answer",
            'send-edit',
            'send-check',
            'send-del',
            'send-add',
            'mail-user-check',
            'mail-letter-check',
            'tickling-edit',
            'tickling-forbidden',
            'tickling-del',
            "tickling-add"
          ]
        }
      },
      {
        path: 'notice-pop',
        name: 'notice-pop',
        component: _import('notice/dashboardNotice/index'),
        meta: {
          title: '首页弹窗消息',
          roles: ['create', 'list', 'edit', 'del', 'switch']
        }
      },

    ]
  }
]

export default noticeRoutes
